package pe.edu.upc.dsd.springjms;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;

public class QueueListener implements MessageListener {
	
	@Override
	public void onMessage(Message message) {
		TextMessage msj = (TextMessage)message;
		try {
			System.out.println(msj.getText());
		} catch (JMSException e) {
			e.printStackTrace();
		}
	}

}
